import { constantRoutes } from '@/router'
const state = {
  // routes实时同步路由的配制
  //   1：默认是静态路由，所以routes的默认值也要是静态路由
  routes: constantRoutes
}
const mutations = {
  setRoutes(state, value) {
    state.routes = value
  }
}
const actions = {}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
